
#include <libyuv.h>

// int NV12ToARGB(const uint8* src_y, int src_stride_y,
//                const uint8* src_uv, int src_stride_uv,
//                uint8* dst_argb, int dst_stride_argb,
//                int width, int height) 

extern "C" void Nv21Convert2RGBA(uint32_t* rgbs, uint8_t* yuv_y, uint8_t* yuv_uv,int width, int height)
{
	libyuv::NV21ToRGBA(yuv_y, width, yuv_uv, width, (uint8*)rgbs, width*4, width, height);
}

